package com.beici.waterghost.except;


import com.beici.waterghost.model.resultes;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ControllerAdvice
public class globExcept {

    @ExceptionHandler(selectError.class)
    public resultes selectError(){
        return resultes.Null();
    }

    @ExceptionHandler(authenExcept.class)
    public resultes authenExecpt(){
        return resultes.NoAuthenction();
    }

}
